package com.xcdh.trading.controller;


import cn.hutool.core.date.DateUtil;
import com.xcdh.commons.controller.BaseController;
import com.xcdh.domain.vo.R;
import com.xcdh.trading.entity.StrongSector;
import com.xcdh.trading.service.StrongSectorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/strongSector")
public class StrongSectorController extends BaseController<StrongSector, StrongSectorService> {
    @Autowired
    private StrongSectorService strongSectorService ;

    @PostMapping("/syncStrongSector/{tradeDate}")
    public R syncStrongSector(@PathVariable String tradeDate){
        strongSectorService.syncStrongSector(tradeDate);
        return R.ok() ;
    }
}
